package com.ruoyi.factory.fanbi.controller;

import com.ruoyi.common.core.domain.AjaxResult;

import com.ruoyi.factory.fanbi.service.LoginHandleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

/**
 * 友空间单点登录帆软信息处理
 */
@RestController
@RequestMapping("/api/frloginHandle")
public class LoginHandleController {

    @Autowired
    private LoginHandleService loginHandleService;
    /**
     * @author: Liujiaji
     * @date: 2024/12/20 0014 15:18
     * @description: TODO 免登到帆软bi根据code获取友空间信息
     * @param: [code]
     * @return: void
     **/
    @PostMapping("/getInfoByCode")
    @ResponseBody
    public AjaxResult getInfoByCode(@RequestBody Map<String,String> request){
        return loginHandleService.getInfoByCode(request);
    }

}
